package cn.edu.neusoft.yyd208.foodorder.model;

import java.util.List;

import cn.edu.neusoft.yyd208.foodorder.bean.ShopBean;
import cn.edu.neusoft.yyd208.foodorder.iface.ShopIface;
import cn.edu.neusoft.yyd208.foodorder.listener.ListListener;
import cn.edu.neusoft.yyd208.foodorder.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class ShopModel extends RetrofitBaseModel implements ShopIface<ShopBean> {
    private Service service;
    private Retrofit retrofit;
    public ShopModel(){
        retrofit=getRetrofit();
    }


    @Override
    public void getShopMessage(final ListListener<ShopBean> listListener) {
        service=getService();
        Call<List<ShopBean>> call=service.showShopList();
        callenqueueList(call,listListener);
    }

}
